package com.foreknow.animal;

public class Duck {
    private String name;
    private int legNum;

    public String getName() {
        return name;
    }

    public int getLegNum() {
        return legNum;
    }

    public Duck(String name, int legNum){
        this.name=name;
        this.legNum=legNum;
    }

    public void shout(){
        System.out.println("嘎嘎嘎......");
    }
}
